package com.maowu.pooling.test;

public class MyConnectionStub
{
    private boolean connected = false;
    private boolean damaged =false;
    private long createRequiredTime = 0;
    private long connectRequiredTime = 100;
    private long businessRequiredTime = 10;
    private boolean destroyed = false;
    private boolean failedToConnect = false;
    
    public long getBusinessRequiredTime()
    {
        return businessRequiredTime;
    }
    public void setBusinessRequiredTime(long businessRequiredTime)
    {
        this.businessRequiredTime = businessRequiredTime;
    }
    public boolean isConnected()
    {
        return connected;
    }
    public void setConnected(boolean connected)
    {
        this.connected = connected;
    }
    public long getConnectRequiredTime()
    {
        return connectRequiredTime;
    }
    public void setConnectRequiredTime(long connectRequiredTime)
    {
        this.connectRequiredTime = connectRequiredTime;
    }
    public long getCreateRequiredTime()
    {
        return createRequiredTime;
    }
    public void setCreateRequiredTime(long createRequiredTime)
    {
        this.createRequiredTime = createRequiredTime;
    }
    public boolean isDamaged()
    {
        return damaged;
    }
    public void setDamaged(boolean damaged)
    {
        this.damaged = damaged;
    }
    public boolean isDestroyed()
    {
        return destroyed;
    }
    public void setDestroyed(boolean destroyed)
    {
        this.destroyed = destroyed;
    }
    public boolean isFailedToConnect()
    {
        return failedToConnect;
    }
    public void setFailedToConnect(boolean failedToConnect)
    {
        this.failedToConnect = failedToConnect;
    }
}
